import Vue from 'vue'
import App from './App'

import allConfig from "config/index.js"

import request from "commom/js/config.js"

import $tip from "commom/js/tip.js"

Vue.prototype.request = request;

Vue.prototype.$Config = allConfig;

Vue.prototype.$tip = $tip;

import uView from '@/uni_modules/uview-ui'
Vue.use(uView)

import shoproLogin from './components/shopro-login-modal/shopro-login-modal.vue'
Vue.component('shopro-login-modal',shoproLogin)

import Hearder from '@/pages/common/hearder.vue'
Vue.component('Hearder',Hearder)

// #ifndef VUE3
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif